﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class Rec_BookCollection:List<Rec_Book>
    {
         public int IndexOf(Rec_Book item)
        {
            return base.IndexOf(item);
        }
        public void Insert(int index, Rec_Book item)
        {
            base.Insert(index, item);
        }
        public new void RemoveAt(int index)
        {
            base.RemoveAt(index);
        }
        public Rec_Book this[int index]
        {
            get
            {
                return base[index];
            }
            set
            {
                base[index] = value;
            }
        }
        public void Add(Rec_Book item)
        {
            base.Add(item);
        }
        public new void Clear()
        {
            base.Clear();
        }
        public new bool Contains(Rec_Book item)
        {
            return base.Contains(item);
        }
        public new void CopyTo(Rec_Book[] array, int arrayIndex)
        {
            base.CopyTo(array, arrayIndex);
        }
        public new int Count
        {
            get
            {
                return base.Count;
            }
        }
        public bool IsReadOnly
        {
            get
            {
                return IsReadOnly;
            }
        }
        public new void Remove(Rec_Book item)
        {
            base.Remove(item);
        }
        public new IEnumerator<Rec_Book> GetEnumerator()
        {
            return base.GetEnumerator();
        } 
    }
    public class Rec_Book
    {
        private int _IdBookRoom;

        public int IdBookRoom
        {
            get { return _IdBookRoom; }
            set { _IdBookRoom = value; }
        }
        private string _BookRoomCode;

        public string BookRoomCode
        {
            get { return _BookRoomCode; }
            set { _BookRoomCode = value; }
        }
        private int _IdCustommer;

        public int IdCustommer
        {
            get { return _IdCustommer; }
            set { _IdCustommer = value; }
        }
        private int _NumDate;

        public int NumDate
        {
            get { return _NumDate; }
            set { _NumDate = value; }
        }
        private int _NumHour;

        public int NumHour
        {
            get { return _NumHour; }
            set { _NumHour = value; }
        }
        private DateTime _BookDate;

        public DateTime BookDate
        {
            get { return _BookDate; }
            set { _BookDate = value; }
        }
        private DateTime _ReceivedDate;

        public DateTime ReceivedDate
        {
            get { return _ReceivedDate; }
            set { _ReceivedDate = value; }
        }
        private DateTime _ReturnDate;

        public DateTime ReturnDate
        {
            get { return _ReturnDate; }
            set { _ReturnDate = value; }
        }
        private int _NumCus;

        public int NumCus
        {
            get { return _NumCus; }
            set { _NumCus = value; }
        }
        private double _Deposit;

        public double Deposit
        {
            get { return _Deposit; }
            set { _Deposit = value; }
        }
        private string _Note;

        public string Note
        {
            get { return _Note; }
            set { _Note = value; }
        }
        private int _StatusRoom;

        public int StatusRoom
        {
            get { return _StatusRoom; }
            set { _StatusRoom = value; }
        }
        private DateTime _CreateDate;

        public DateTime CreateDate
        {
            get { return _CreateDate; }
            set { _CreateDate = value; }
        }
        private DateTime _UpdateDate;

        public DateTime UpdateDate
        {
            get { return _UpdateDate; }
            set { _UpdateDate = value; }
        }
        private int _CreateBy;

        public int CreateBy
        {
            get { return _CreateBy; }
            set { _CreateBy = value; }
        }
        private int _UpdateBy;

        public int UpdateBy
        {
            get { return _UpdateBy; }
            set { _UpdateBy = value; }
        }
        private Boolean _Status;

        public Boolean Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
        private Boolean _New;

        public Boolean New
        {
            get { return _New; }
            set { _New = value; }
        }
    }
}
